{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <!-- Panel Other -->
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5>产品列表</h5>
        </div>
        <div class="ibox-content">
            <!--搜索框开始-->           
           <div class="row">
                <div class="col-sm-12">   
                <div  class="col-sm-2" style="width: 100px">
                    <div class="input-group" >  
                        <a href="{:url('add_goods')}"><button class="btn btn-outline btn-primary" type="button">添加产品</button></a> 
                    </div>
                </div>                                            
                    <form name="admin_list_sea" class="form-search" method="post" action="{:url('index')}">
                        <div class="col-sm-3">
                            <div class="input-group">
                                <input type="text" id="key" class="form-control" name="key" value="" placeholder="输入需查询的商品名称" />   
                                <span class="input-group-btn"> 
                                    <button type="submit" class="btn btn-primary"><i class="fa fa-search"></i> 搜索</button> 
                                </span>
                            </div>
                        </div>
                    </form>  
                     
                </div>
            </div>
            <!--搜索框结束-->
            <div class="hr-line-dashed"></div>
            <div class="example-wrap">
                <div class="example">
                    <table class="table table-bordered table-hover">
                        <thead>
                            <tr class="long-tr">
                                <th width="4%">ID</th>
                                <th width="9%">商品名称</th>
                                <th width="9%">商品分类</th>
                                <th width="9%">商品价格</th>
                                <th width="5%">商品地址</th>
                                <th width="5%">商品图片</th>
                                <th width="5%">今日产量</th>
                                <th width="10%">操作</th>
                            </tr>
						</thead>
						<tbody>
                        	{volist name="list" id='ad'}
                        	<tr class="long-td">
                        		<td>{$ad.id}</td>
                        		<td>{$ad.goodsname}</td>
                        		<td>{$ad.shopid}</td>
                        		<td>{$ad.price}</td>
                        		<td>{$ad.address}</td>
                        		<td> 
                        			<img src="/public/uploads/images/{$ad.images}" style="height: 30px" onerror="this.src='/public/static/admin/images/no_img.jpg'"/>
                        		</td>
                        		<td>{$ad.mamount}</td>
                        		<td></td>
                        	</tr>
                        	{/volist}
                        </tbody>
                    </table>
                </div>
            </div>
            <!-- End Example Pagination -->
        </div>
    </div>
</div>
<!-- End Panel Other -->
</div>

<!-- 加载动画 -->


{include file="public/footer" /}
</body>
</html>